package com.happy.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: lifeng
 * @Date: 2018/12/6 11:16
 * @Description:
 */
@RestController
public class PortService {

  @Value("${server.port}")
  String port;

  @GetMapping("port")
  public String getPort (){
    return "Hello World,I'am  from port: "+port;
  }

}
